package com.bookmall.service;

import com.bookmall.mapper.TbBookUserMapper;
import com.bookmall.pojo.TbBookUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author tx
 * @version 1.0
 * @date 2020/3/9 20:06
 */
@Service
@Transactional
public class SignOnServiceImpl implements SignOnSerivce {

    @Resource
    private TbBookUserMapper tbBookUserMapper;

    @Override
    public Integer sign(TbBookUser tbBookUser) {
        Integer result=tbBookUserMapper.insert(tbBookUser);
        System.out.println(tbBookUser.getId());
        return result;
    }
}
